<template>
  <div>
    {{content}}
    <button @click="handle">goods</button>
  </div>
</template>
<script>
export default {
  computed: {
    content() {
      return this.$store.state.count;
    }
  },
  methods: {
    handle() {
      this.$store.commit("increment");
    }
  }
};
</script>
<style scoped>
</style>
